<!--
  * 时间：2024/11/22
  * 作者：刘岩
  * 描述：列表
-->
<template>
  <div class="list">
    <el-table
      :data="dataList"
      style="width: 100%"
      border
      height="100%"
      stripe
    >
      <el-table-column label="统计时间" prop="time"></el-table-column>
      <el-table-column label="人数" prop="density"></el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: 'list',
  props: {
    tableList: {
      type: Array,
      default: () => {
        return [];
      }
    }
  },
  data () {
    return {
      dataList: []
    }
  },
  watch: {
    tableList(val) {
      console.log('000')
      this.dataList = val;
    }
  }
}
</script>

<style scoped lang="scss">
.list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
</style>
